<include file="Public/min-header"/>
<link href="__PUBLIC__/plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/plugins/daterangepicker/moment.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>

<style>
    td{height:40px;line-height:40px; padding-left:20px;}
    .span_1{
        float:left;
        margin-left:0px;
        height:130px;
        line-height:130px;
    }
    .span_1 ul{list-style:none;padding:0px;}
    .span_1 ul li{
        border:1px solid #CCC;
        height:40px;
        padding:0px 10px;
        margin-left:-1px;
        margin-top:-1px;
        line-height:40px;
    }
</style>
<div class="wrapper">
    <include file="Public/breadcrumb"/>
    <section class="content" style="padding:0px 15px;">
        <!-- Main content -->
        <div class="container-fluid">
            <div class="pull-right">
                <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
            </div>
            <div class="panel panel-default">
                <div class="panel-body ">
                    <ul class="nav nav-tabs">
                        <foreach name="group_list" item="vo" key="k">
                            <li <if condition="$k eq 'shares'">class="active"</if>><a href="javascript:void(0)" data-url="{:U('System/index',array('inc_type'=>$k))}" data-toggle="tab" onclick="goset(this)">{$vo}</a></li>
                        </foreach>
                    </ul>
                    <!--表单数据-->
                    <form method="post" id="handlepost" action="{:U('System/handle')}">
                        <!--通用信息-->
                        <div class="tab-content" style="padding:20px 0px;">
                            <div class="tab-pane active" id="tab_tongyong">
                                <table class="table table-bordered">
                                    <tbody>

                                    <tr>
                                        <td>股票发行总数：</td>
                                        <td>
                                     <input type="text" class="input-sm" name="anb_zz_1" value="{$config.anb_zz_1}" >
                                    己发行： <input type="text" class="input-sm" name="anb_zz_1" value="{$config.anb_zz_1}" ><font style="color:red">（超过发行总数将自动停止发售）</font>
                                    </td>
                                    </tr>
                                    <tr>
                                        <td>初始发行价格：</td>
                                        <td> <input type="text" class="input-sm" name="anb_zz_1" value="{$config.anb_zz_1}" >
                                    </td>
                                    </tr>
                                    
                                     <tr>
                                            <td>股票挂售参数：</td>
                                            <td>
                                                <input type="text" class="input-sm" name="anb_gs_1" value="{$config.anb_gs_1}" >起
                                                <input type="text" class="input-sm" name="anb_gs_2" value="{$config.anb_gs_2}" >倍数
                                                <input type="text" class="input-sm" name="anb_gs_3" value="{$config.anb_gs_3}" >手续费
                                            </td>
                                        </tr> 
                                        <tr>
                                            <td>股票挂售最高持用比例：</td>
                                            <td>
                                                <input type="text" class="input-sm" name="anb_hn" value="{$config.anb_hn}" >【%】
                                                <span id="err_attr_name" style="color:#F00; display:none;"></span>                              
                                            </td>
                                        </tr>   
                                        <tr>
                                            <td>股票挂售时间：</td>
                                            <td >
                                                <input type="text" class="input-sm" name="anb_out_time" value="{$config.anb_out_time}" >【日】
                                                <span id="err_type_id" style="color:#F00; display:none;"></span>&nbsp; 超过设定时间未售出 即可发起公司回购变现                                   
                                            </td>
                                        </tr>  
                                        <tr>
                                            <td>公司回购变现价格：</td>
                                            <td >
                                                <input type="text" class="input-sm" name="anb_out_price" value="{$config.anb_out_price}" >
                                                <span id="err_type_id" style="color:#F00; display:none;"></span>&nbsp;                                 
                                            </td>
                                        </tr>  
                                        <tr>
                                            <td>股票拆分价格：</td>
                                            <td>
                                                <input type="text" class="input-sm" name="anb_cf_price" value="{$config.anb_cf_price}" >
                                            </td>
                                        </tr>  
                                        <tr>
                                            <td>股票拆分比例：</td>
                                            <td>
                                                <input type="text" class="input-sm" name="anb_cf_bilie" value="{$config.anb_cf_bilie}" > 1 代表 1倍 ：如 拆分前 100  拆分后  就是 200  
                                            </td>
                                        </tr> 
                                         <tr>
                                            <td>股票拆分后回落价格：</td>
                                            <td>
                                                <input type="text" class="input-sm" name="anb_cf_add" value="{$config.anb_cf_add}" > 
                                            </td>
                                        </tr>
                                        </tr> 
                                        
                                    </tbody>
                                    <tfoot>
                                        <tr>
                                            <td><input type="hidden" name="inc_type" value="{$inc_type}"></td>
                                            <td class="text-right"><input class="btn btn-primary" type="button" onclick="adsubmit()" value="保存"></td></tr>
                                    </tfoot>
                                </table>
                            </div>
                        </div>
                    </form><!--表单数据-->
                </div>
            </div>
        </div>
    </section>
</div>
<script>
    function adsubmit() {
        $('#handlepost').submit();
    }

    $(document).ready(function () {
        get_province();
        var marktype = "{$config['mark_type']}";
        if (marktype == 'text') {
            $('#texttr').show();
        } else {
            $('#imgtr').show();
        }
    });

    function goset(obj) {
        window.location.href = $(obj).attr('data-url');
    }

// 上传水印图片成功回调函数
    function call_back(fileurl_tmp) {
        $("#mark_img").val(fileurl_tmp);
    }

    function setwarter(marktype) {
        if (marktype == 'text') {
            $('#texttr').show();
            $('#imgtr').hide();
        } else {
            $('#texttr').hide();
            $('#imgtr').show();
        }
    }
</script>

</body>
</html>